<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('Tui/Agent/withdrawRecord')}" target="_self">打款记录</a></li>
            <!--<li><a href="{:U('Agent/Agent/add')}" target="_self">添加渠道</a></li>-->
        </ul>
        <form class="well form-search" method="get" action="{:U('Tui/Agent/withdrawRecord')}">
            <div class="search_type cc mb10">
                <div class="mb10">
                    <span class="mr20">
                        渠道账号：
                        <select class="select_2" name="agent" id="selected_id">
                            <empty name="formget['agent']">
                                <option value="" selected="selected">全部</option>
                            </empty>
                            <notempty name="formget['agent']">
                                <option value="">全部</option>
                            </notempty>
                            <volist name="agents" id="vo">
                                <if condition="$vo.id eq $formget['agent']">
                                    <option value="{$vo.id}" selected="selected">{$vo.user_login}</option>
                                <else />
                                    <option value="{$vo.id}">{$vo.user_login}</option>
                                </if>
                            </volist>
                        </select>
                        <input type="submit" class="btn btn-primary" value="搜索" />
                    </span>
                </div>
            </div>
        </form>

        <form class="js-ajax-form" action="" method="post">
            <table class="table table-hover table-bordered table-list">
                <thead>
                    <tr>
                        <th width="20">ID</th>
                        <th width="50">渠道名</th>
                        <th width="50">渠道联系人</th>
                        <th width="50">提现方式</th>
                        <th width="50">提现帐号</th>
                        <th width="50">金额</th>
                        <th width="50">打款时间</th>
                        <!--<th width="50">状态</th>-->
                    </tr>
                </thead>
                <foreach name="items" item="vo">
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.user_login}</td>
                        <td>{$vo.user_nicename}</td>
                        <td>
                            <switch name="vo.payway">
                                <case value="zfb">支付宝</case>
                                <case value="bank">银行卡</case>
                            </switch>
                        </td>
                        <td>{$vo.account}</td>
                        <td>{$vo.amount}</td>
                        <td>{$vo.update_time|date="Y-m-d H:i:s",###}</td> 
<!--                        <td>
                            <switch name="vo.status">
                                <case value="1">待审核</case>
                                <case value="2">审核通过</case>
                                <case value="3">审核不通过</case>
                            </switch>
                        </td>-->
                    </tr>
                </foreach>				
            </table>
            <div class="pagination">{$Page}</div>
        </form>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>